package com.boyue.controller;

import com.boyue.domain.RespBean;
import com.boyue.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/rest")
public class RestServiceController {

    @Autowired
    private UserService userService;

    @GetMapping("/restGetInfo")
    public RespBean restGetInfo(){
        return userService.restGetInfo();
    }

}
